SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 53962: Using implicit pass-through to Netezza with the WEEKDAY() function generates incorrect SQL results

DetailsAboutRate It

When using SAS/ACCESS® Interface to Netezza, after you assign a LIBNAME statement to Netezza, the WEEKDAY() function is incorrectly passed to the database. This causes incorrect results to be returned.

For example, the Netezza table tbl1 has a date field called dd:

libname nz netezza server=nz-server user=nz-user pwd=nz-pwd database=nz-db; proc sql; select dd, weekday(dd) as week from nz.tbl1; quit;

The SAS log with tracing shows the following:

ACCESS ENGINE: SQL statement was passed to the DBMS for fetching data.

As a workaround, do not use the WEEKDAY() function when running a LIBNAME statement with SAS/ACCESS Interface to Netezza.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to NetezzaLinux for x649.4 TS1M29.4 TS1M3
HP-UX IPF9.4 TS1M29.4 TS1M3
64-bit Enabled Solaris9.4 TS1M29.4 TS1M3
64-bit Enabled AIX9.4 TS1M29.4 TS1M3
Windows 7 Ultimate x649.4 TS1M29.4 TS1M3
Windows 7 Ultimate 32 bit9.4 TS1M29.4 TS1M3
Windows 7 Professional x649.4 TS1M29.4 TS1M3
Windows 7 Professional 32 bit9.4 TS1M29.4 TS1M3
Windows 7 Home Premium x649.4 TS1M29.4 TS1M3
Windows 7 Home Premium 32 bit9.4 TS1M29.4 TS1M3
Windows 7 Enterprise x649.4 TS1M29.4 TS1M3
Windows 7 Enterprise 32 bit9.4 TS1M29.4 TS1M3
Microsoft Windows Server 2012 Std9.4 TS1M29.4 TS1M3
Microsoft Windows Server 2012 R2 Std9.4 TS1M29.4 TS1M3
Microsoft Windows Server 2012 R2 Datacenter9.4 TS1M29.4 TS1M3
Microsoft Windows Server 2012 Datacenter9.4 TS1M29.4 TS1M3
Microsoft Windows Server 2008 for x649.4 TS1M29.4 TS1M3
Microsoft Windows Server 2008 R29.4 TS1M29.4 TS1M3
Microsoft Windows Server 20089.4 TS1M29.4 TS1M3
Microsoft Windows 8.1 Pro 32-bit9.4 TS1M29.4 TS1M3
Microsoft Windows 8.1 Pro9.4 TS1M29.4 TS1M3
Microsoft Windows 8.1 Enterprise x649.4 TS1M29.4 TS1M3
Microsoft Windows 8.1 Enterprise 32-bit9.4 TS1M29.4 TS1M3
Microsoft Windows 8 Pro x649.4 TS1M29.4 TS1M3
Microsoft Windows 8 Pro 32-bit9.4 TS1M29.4 TS1M3
Microsoft Windows 8 Enterprise x649.4 TS1M29.4 TS1M3
Microsoft Windows 8 Enterprise 32-bit9.4 TS1M29.4 TS1M3
Microsoft® Windows® for x649.4 TS1M29.4 TS1M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.